﻿
// HCViewerProgrammView.h: CHCViewerProgrammView 类的接口
//

#pragma once

#include "GCode.h"
//#include "CRichEditCtrlGCode.h"
#include "CNCEditWnd.h"
class CHCViewerProgrammView : public CView
{
protected: // 仅从序列化创建
	CHCViewerProgrammView() noexcept;
	DECLARE_DYNCREATE(CHCViewerProgrammView)

// 特性
public:
	CHCViewerProgrammDoc* GetDocument() const;
private:
	//格式化输出单条GCode实体
	vector<CGcode> m_Vgcode;
	CNCEditWnd *m_NCEditWnd;
	int m_ViewCreateFlag;
	string m_filePath;

// 操作
public:
	string getFilePath();
	vector<CGcode> getVgcode();
// 重写
public:
	virtual void OnDraw(CDC* pDC);  // 重写以绘制该视图
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);

// 实现
public:
	virtual ~CHCViewerProgrammView();
public:
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// 生成的消息映射函数
protected:
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnSize(UINT nType, int cx, int cy);
};
#ifndef _DEBUG  // HCViewerProgrammView.cpp 中的调试版本
inline CHCViewerProgrammDoc* CHCViewerProgrammView::GetDocument() const
   { return reinterpret_cast<CHCViewerProgrammDoc*>(m_pDocument); }
#endif

